﻿$.Class('ZeusThunder',
	{
	    workspceIdPrefix: "workspace-",
	    workspceLabelPrefix: "Workspace",
	    workspaces: [],
	    init: function (options) {
	        ZEUS.DEBUG.log('ZeusThunder Inited ... ');

	        var settings = {
	            dataUrl: ""
	        };
	        this.settings = $.extend({}, settings, options);
	        /*
	        this.saveDashboardUrl = app.getBaseUrl() + "/Preference/SaveWorkspaceTabSequence";
	        this.priceReportOptionsUrl = app.getBaseUrl() + "/Quote/LoadFavouriteQuoteConfigure";
	        this.deleteWorkspaceUrl = app.getBaseUrl() + "/Preference/RemoveWorkspaceProfile/";
	        this.saveSelectedWorkspaceUrl = app.getBaseUrl() + "/Preference/SaveSelectedWorkspaceTab/";
	        */
	        this.activeWorkspaceId = "workspace-0";
	        //$("#zeusthunder").zeusthunder();
	        /*
	        $.subscribe("addWorkspace", this._addWorkspaceHandler, this);
	        $.subscribe("deleteWorkspace", this._deleteWorkspaceHandler, this);
	        $.subscribe("editWorkspace", this._editWorkspaceHandler, this);
	        $.subscribe("duplicateWorkspace", this._duplicateWorkspaceHandler, this);
	        $.subscribe("changeWorkspacePosition", this._changeWorkspacePositionHandler, this);
	        $.subscribe("showUseCredits", this._showUserCredits, this);
	        */
	    },
	    loadData: function () {
	        var that = this;
	        var profiles = zeusProfile;
	        that._initZeusWithData(profiles);
	    },
	    _initZeusWithData: function (data) {
	        // var that = this;
	        var profile = data;
	        ZEUS.DEBUG.log("***** Profile Info *****");
	        ZEUS.DEBUG.log('ID: ' + profile.Id);
	        ZEUS.DEBUG.log('Name: ' + profile.Name);
	        ZEUS.DEBUG.log("************************");
	    }
	}
);